<?php
 defined('_JEXEC') or die('Restricted access');?>
    <script language="javascript" type="text/javascript">
                jQuery.noConflict();
                jQuery(document).ready(function(){
					jQuery('#tkb_lop_detail th').parent().addClass('table-heading');
					jQuery('#tkb_lop_detail tr:not([th]):even').addClass('even');
					jQuery('#tkb_lop_detail tr:not([th]):odd').addClass('odd');
				       
        	});
   </script>
    <?php
			
		echo "<div align='center'><h1 class='contentheading'>Danh Sách Sinh Viên </h1><br/>";
		echo "Học Kỳ 2- Năm Hoc 10 - 11</div>";
		echo '<br/>';
		echo "Hệ:";
		echo '<br/>';
		echo "Ngành:";
		echo '<br/>';
		echo "Lớp:";
		echo '<br/>';
				echo "<table id=tkb_lop_detail>";
				echo "<tr><th>STT</th><th>MãSV</th><th>Họ Và Tên</th><th>Ngày Sinh</th><th>Phái</th><th>Nơi Sinh</th></tr>";
				$count=1;
					foreach ($this->listtkblopdetail as $row)
					{
							// Encode text to HTML formatting
						$stt=$count;
						$masv =htmlspecialchars($row->F_MASV, ENT_QUOTES);
						$hoten = mb_convert_encoding($row->F_HOLOT,'HTML-ENTITIES', 'UTF-8')." ".mb_convert_encoding($row->F_TEN,'HTML-ENTITIES', 'UTF-8');
						$ngaysinh = htmlspecialchars($row->F_NGAYSINH, ENT_QUOTES);
						$phai = htmlspecialchars($row->F_PHAI, ENT_QUOTES);
						$noisinh = htmlspecialchars($row->F_NOISINH, ENT_QUOTES);
						
						echo "<tr align=center>";
						echo "<td align=left>". $stt ."</td>";
						echo "<td align=left>". $masv ."</td>";
						echo "<td>". $hoten ."</td>";
						echo "<td>".  $ngaysinh ."</td>";
						echo "<td>".  $phai ."</td>";
						echo "<td>".  $noisinh ."</td>";
						
						
						// Put horizontal rules between entries
						echo "</tr>";
					}
				echo "</table>";
				echo '<br/>';
				//echo '<input type="button" id="InPDF" class="button" value="In PDF"  style="float:right;"/>';
				echo '<ul><li>Xuất Thời Khóa Biểu Theo Định Dạng PDF [<a href="';
				echo $this->baseurl.'/index.php?option=com_thoikhoabieu&task=tkblopdetail&exportPDF=true&he='.$this->he.'&nganh='.$this->nganh.'&lop='.$this->lop.'" title="PDF [new window]" target="_blank">PDF</a>]</li></ul>';
		
				echo '<input type="hidden" name="he" id="he" value="'.$this->he.'" />';
				echo '<input type="hidden" name="nganh" id="nganh" value="'.$this->nganh.'" />';
				echo '<input type="hidden" name="lop"  id="lop" value="'.$this->lop.'" />';


?>
